gadgethit()
Description:
Check which gadget a specified rectangle hits, in a specified window.
Syntax:
Required syntax: |
| gadgethandle.gadget = gadgethit( x , y , width , height , windowhandle )
|
Required syntax: |
| gadgethandle.gadget = gadgethit( x , y , width , height , windowhandle , [check_locked] )
|
Parameters:
Required parameters |
Description |
|
| x | Horizontal ( x ) position of rectangle to check if hit a gadget | |
| y | Vertical ( y ) position of rectangle to check if hit a gadget | |
| width | Width of rectangle to check if hit a gadget | |
| height | Height of rectangle to check if hit a gadget | |
| windowhandle | Handle to window to check in | |
Optional parameters |
Description |
Default |
| check_locked | Boolean value to set if also check the locked gadgets (donīt check locked gadgets = 0 / check locked gadgets = 1 ) |
0 |
Returns:
the gadgethandle of a hitted gadget, null if none
Example: